<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!--START: content -->
<div class="content2">
    <div class="insider">
        <div class="corners">
            <div class="corners_top"></div>
            <div class="column1">
                <div class="col_l">

                    <form id="password" action="doresetpass.html" method="post">
                        <table width="440" border="0" cellspacing="4" class="formlayout_table">
                            <tr>
                                <th width="188"><label>Username:</label></th>
                                <td width="240"><c:out value="${user.username}" /><input name="username" type="hidden" value="${user.username}" /></td>
                            </tr>

                            <tr>
                                <th><label for="Password">Enter new password:</label></th>
                                <td><input name="password" type="password" id="password" value="" class="input1" /></td>
                            </tr>

                            <tr>
                                <th><label for="Verify password">Confirm new password:</label></th>
                                <td>
                                    <input name="confirmPassword" type="password" id="confirmPassword" value="" class="input1" />
                                </td>
                            </tr>

                        </table>
                    </form>
                </div>
            </div>
            
            <!-- Function1 -->
            <ul class="functions1">
                <li>
                    <a href="#" onclick="$('#password').submit();">
                        <img src="<%= request.getContextPath()%>/images/btn/functions1/btn_save.gif" class="btn" />
                    </a>
                </li>
                <li>
                    <a href="<%= request.getContextPath()%>/login.jsp">
                        <img src="<%= request.getContextPath()%>/images/btn/functions1/btn_cancel.gif" class="btn" />
                    </a>
                </li>
            </ul>
            <div class="corners_bottom"></div>
        </div>

        <div class="message">
            <c:if test="${hasErrors}">
                <font color="red">${errors['password.errors'][0]}<br> ${errors['confirmPassword.errors'][0]}<br></font>
            </c:if>
        </div>

    </div>
</div>
<!--END: content -->